#define _CRT_SECURE_NO_WARNINGS
#include "Queue.h"

int main()
{
	Queue q;
	QueueInit(&q);
	QueueFush(&q, 1);
	//printf("%d ", QueueFront(&q));
	//QueuePop(&q);
	QueueFush(&q, 2);
	QueueFush(&q, 3);
	QueueFush(&q, 4);
	printf("%d ", QueueBack(&q));

	printf("size:%d\n", QueueSize(&q));

	while (!QueueEmpty(&q))
	{
		printf("%d ", QueueFront(&q));
		QueuePop(&q);
	}
	printf("\n");
	QueueDestroy(&q);
	return 0;
}